//
//  ApiConfig.swift
//  iOSProjectExtensionSwift
//
//  Created by Apple on 2020/1/11.
//  Copyright © 2020 lidianchao. All rights reserved.
//

import Foundation
//api写在此处
let RequestResponseCode = "errno"//后台返回错误码字段
let RequestErrorMsg = "error"
let RequestData = "returnContent"
let RequestCorrectResponseCode = "0"//请求成功且数据正常的返回码规定为0，若后台改变，只需要修改此处
//网络请求状态码
func kNetRequestOK(response:Dictionary<String, Any>) ->Bool{
    let networkErrorCode = String(format: response[RequestResponseCode] as! String);
    if(networkErrorCode == RequestCorrectResponseCode) {
        return true;
    }
    return false;
}
let HOST = ""
//获取验证码
let kGetImgCode_Url = ""
//获取随机验证码
let v = arc4random()
let kGetImgCode_UrlRandom = kGetImgCode_Url + "?v=\(v)"
